import axios from '@/api/axios.js'

// 获取影院详情 -lxz
const getCinemaDetails = (CinemaId) => {
    return axios.get(`https://apis.netstart.cn/maoyan/cinema/detail?cinemaId=${CinemaId}`)
}

// 获取影院影片详情 -lxz 
const getCinemaFilm = (CinemaId) => {
    return axios.get(`https://apis.netstart.cn/maoyan/cinema/shows?cinemaId=${CinemaId}&ci=1&channelId=4`)
}

// 获取影院超值套餐详情 -lxz 
const getFootinfo = () => {
    return axios.get(`https://apis.netstart.cn/maoyan/cinema/queryDealList.json`)
}

// 获取购票页资源
const getBuyinfo = () => {
    return axios.get(`https://apis.netstart.cn/maoyan/cinema/seat-m.json`)
}

// 生成二维码接口
const getQrCode = (textobj) => {
    return axios.get(`https://uapis.cn/api/textqrcode?text=${textobj}`)
}


export { getCinemaDetails, getCinemaFilm, getFootinfo, getBuyinfo,getQrCode }